<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改温区信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-zone-edit" th:object="${temperatureZone}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">温区编号：</label>
                <div class="col-sm-8">
                    <input name="temperatureZoneCode" th:field="*{temperatureZoneCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">温区名：</label>
                <div class="col-sm-8">
                    <input name="name" th:field="*{name}" class="form-control" type="text" required disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最高温：</label>
                <div class="col-sm-8">
                    <input name="maxTemperature" th:field="*{maxTemperature}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最低温：</label>
                <div class="col-sm-8">
                    <input name="lowTemperature" th:field="*{lowTemperature}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">行宽：</label>
                <div class="col-sm-8">
                    <input name="totalRow" th:field="*{totalRow}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">起始行：</label>
                <div class="col-sm-8">
                    <input name="startRow" th:field="*{startRow}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">起始列：</label>
                <div class="col-sm-8">
                    <input name="startColumn" th:field="*{startColumn}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">列宽：</label>
                <div class="col-sm-8">
                    <input name="totalColumn" th:field="*{totalColumn}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库：</label>
                <div class="col-sm-8">
                    <input name="warehouseId" th:field="*{warehouseId}" class="form-control" type="text" disabled>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否生成货位(0:否,1:是)：</label>
                <div class="col-sm-8">
                    <input name="isAssignLocation" th:field="*{isAssignLocation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">仓库温区总库位：</label>
                <div class="col-sm-8">
                    <input name="temperAreaVolume" th:field="*{temperAreaVolume}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/zone";
        $("#form-zone-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-zone-edit').serialize());
            }
        }
    </script>
</body>
</html>